package object;

public class ObjectDemo {
    public static void main(String[] args) {






          Point p1 = new Point(100, 200);
        Point p2 = new Point(100, 200);
        System.out.println(p1 == p2);
        System.out.println(p1.equals(p2));

        String s1 = "hello";
        String s2 = "hello";
        System.out.println(s1 == s2);

        StringBuilder builder1 = new StringBuilder("hello");
        StringBuilder builder2 = new StringBuilder("hello");
        System.out.println(builder1 == builder2);

        System.out.println(s1.equals(builder1));









        /*Point point = new Point(100,200);
        System.out.println(point);
        System.out.println(point.toString());*/


    }
}
